<!DOCTYPE html >
<html>
<head>
<?php echo $this->Html->charset(); ?>
<title>
<?php echo $title_for_layout; ?>
</title>
<?php
echo $this->Html->meta('icon');
echo $this->Html->css(array(
			'cake.generic',
			'960',
			'layout',
			"jquery-ui-1.8.16.custom",
			));

echo $this->Html->script(array(
			'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js',
			"jquery-ui-1.8.16.custom.min",
			'layout',
			));
echo $scripts_for_layout;
?>
</head>
<body class='base-background'>
	<div id="container" class='container_12'>
		<div id="header" class='grid_12 light-background light-border'>
			<div id="title" class='prefix_1 grid_8 alpha'>
				<?php echo $this->Html->tag('h1',$this->Html->link('TSO eTimesheet System', '/')); ?>
			</div>
			<div id="userCtrl" class='prefix_1 grid_2 omega'>
				<?php echo $this->element('userCtrl');?>
			</div>
			<div id="nav" class="alpha prefix_1 grid_10 suffix_1 omega light-background">
				<?php if(isset($this->Navigation) && isset($navMenu)) 
					echo($this->Navigation->buildMenu($navMenu))
				?>
			</div>
		</div>

		<div id="notification" class="prefix_2 grid_8 suffix_2">
			<?php echo $this->Session->flash(); ?>
		</div>

		<div id="content" class="grid_12 dark-border">
			<?php echo $content_for_layout; ?>
		</div>
		<div id="footer" class="grid_12">
		</div>
	</div>
	<?php /*
	<div id='sqlDump'><button>Show/Hide SQL dump</button>
		<div class='dump'><?php echo $this->element('sql_dump'); ?></div>
	</div>
	*/ ?>
</body>
</html>
